package com.weixiao.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixiao.model.order.OrderInfo;
import com.weixiao.vo.order.OrderQueryVo;

import java.util.Map;

/**
 * author 韩诚
 * date 2022/10/27
 */
public interface OrderService extends IService<OrderInfo> {
    /**
     * 创建订单
     *
     * @param scheduleId
     * @param patientId
     * @return
     */
    Long saveOrder(String scheduleId, Long patientId);

    /**
     * 获取分页列表
     */
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    /**
     * 获取订单详情
     */
    OrderInfo getOrderInfo(String id);

    /**
     * 后端前台 订单详情
     *
     * @param orderId
     * @return
     */
    Map<String, Object> show(Long orderId);
}